home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / MacSource / POVMacHeaders.pch < prev    next >
Encoding:
Text File  |  1997-05-18  |  8.3 KB  |  312 lines  |  [TEXT/CWIE]

  1. /*==============================================================================
  2. Project:    POV-Ray
  3.  
  4. Version:    3
  5.  
  6. File:    POVMacHeaders.pch
  7.  
  8. Description:
  9.     This is a generic Precompiled Header File for POV-Ray
  10.     it will be "Precompiled" and saved before MAKing the project.
  11. ------------------------------------------------------------------------------
  12. Author:
  13.     Eduard [esp] Schwan
  14. ------------------------------------------------------------------------------
  15.     from Persistence of Vision(tm) Ray Tracer
  16.     Copyright 1996 Persistence of Vision Team
  17. ------------------------------------------------------------------------------
  18.     NOTICE: This source code file is provided so that users may experiment
  19.     with enhancements to POV-Ray and to port the software to platforms other 
  20.     than those supported by the POV-Ray Team.  There are strict rules under
  21.     which you are permitted to use this file.  The rules are in the file
  22.     named POVLEGAL.DOC which should be distributed with this file. If 
  23.     POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  24.     Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  25.     Forum.  The latest version of POV-Ray may be found there as well.
  26.  
  27.     This program is based on the popular DKB raytracer version 2.12.
  28.     DKBTrace was originally written by David K. Buck.
  29.     DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  30. ------------------------------------------------------------------------------
  31. Change History:
  32.     951221    [esp]    Created
  33. ==============================================================================*/
  34.  
  35.  
  36. #if !defined(POVMACHEADERS_PCH)
  37. #define POVMACHEADERS_PCH
  38.  
  39.  
  40. // ---------------------------------------------------------------
  41. // Set the output dump file name
  42. //
  43. //-------------------------------
  44. // Metrowerks Codewarrior section
  45. //-------------------------------
  46. #if defined(__MWERKS__)
  47.  
  48.     #if defined (__powerc) || defined (powerc)
  49.         #pragma precompile_target "POVMWPPC"
  50.     #else
  51.         #if (__MC68881__)
  52.             #pragma precompile_target "POVMW68K"
  53.         #else
  54.             #pragma precompile_target "POVMW68KNF"
  55.         #endif
  56.     #endif
  57.  
  58.     #define   USE_PRECOMPILED_HEADERS    0    // not their PCH, use ours...  
  59.     #include <ansi_prefix.mac.h> // include this if using Metrowerks Std. C Lib (MSL)
  60.  
  61. //-------------------
  62. // Symantec C section
  63. //-------------------
  64. // need to find out what Symantec pragma PCH-names are...
  65. #elif defined(THINK_C)
  66.     #pragma precompile_target "POVTPM68K"
  67.     // ---------------------------------------------------------------
  68.     // Required for c-style toolbox glue function: c2pstr and p2cstr
  69.     // the inverse operation (pointers_in_A0) is performed at the end ...
  70.     // ---------------------------------------------------------------
  71.     #if !(powerc || __CFM68K__)
  72.         #pragma d0_pointers on
  73.     #endif
  74. #elif defined(__SC__)
  75.     #pragma precompile_target "POVSPMPPC"
  76. //------------------
  77. // Apple MPW section
  78. //------------------
  79. #elif defined(applec)
  80.     #if defined (__powerc) || defined (powerc)
  81.         // um... MPW needs...
  82.     #else
  83.         // um... MPW SC needs...
  84.     #endif
  85. #endif
  86.  
  87.  
  88. // ---------------------------------------------------------------
  89. // Which OS is minimum
  90. // ---------------------------------------------------------------
  91. #if !defined(SystemSixOrLater)
  92.  #define SystemSixOrLater    true
  93. #endif // SystemSixOrLater
  94.  
  95. #if !defined(SystemSevenOrLater)
  96.  #define SystemSevenOrLater    true
  97. #endif // SystemSevenOrLater
  98.  
  99.  
  100. // ---------------------------------------------------------------
  101. // Regular Mac system header files
  102. // ---------------------------------------------------------------
  103.  
  104. #include <Types.h>
  105. #include <Controls.h>
  106. #include <Dialogs.h>
  107. #include <Devices.h>
  108. #include <Files.h>
  109. #include <Memory.h>
  110. #include <Menus.h>
  111. //#include <OSEvents.h>
  112. #include <OSUtils.h>
  113. #include <Packages.h>
  114. #include <PictUtils.h>
  115. #include <QuickDraw.h>
  116. #include <Resources.h>
  117. #include <Windows.h>
  118. #include <scrap.h>
  119. #include <shutdown.h>
  120. #include <sound.h>
  121. #include <AppleEvents.h>
  122. #include <AERegistry.h>
  123. #include <DiskInit.h>
  124. #include <Gestalt.h>
  125. #include <Folders.h>
  126. #include <Balloons.h>        /* kHMHelpMenuID */
  127. #include <errors.h>            /* dupFNErr, etc */
  128. #include <fonts.h>
  129. #include <segload.h>        /* UnloadSeg */
  130. #include <eppc.h>            /* kHighLevelEvent */
  131. #include <traps.h>            /* _Unimplemented */
  132. #include <toolutils.h>        /* BitTst, etc */
  133. #include <strings.h>        /* p2cstr */
  134.  
  135.  
  136. // ---------------------------------------------------------------
  137. // Additional Header files not normally compiled in
  138. // ---------------------------------------------------------------
  139. #include <AppleEvents.h>
  140. #include <Components.h>
  141. #include <ImageCompression.h>
  142. #include <LowMem.h>
  143. #include <Movies.h>
  144. #include <MoviesFormat.h>
  145. #include <QuickTimeComponents.h>
  146. #include <sound.h>        // SndPlay
  147. #include <Icons.h>
  148.  
  149. #if defined(powerc) || defined (__powerc)
  150.  #include <CodeFragments.h>        /* kUnresolvedAddress */
  151. #endif
  152.  
  153.  
  154. // ---------------------------------------------------------------
  155. // Std C
  156. // ---------------------------------------------------------------
  157.  
  158. #include <stdio.h>        /* fopen */
  159. #include <stdlib.h>        /* - */
  160. #include <string.h>        /* strcpy/cat */
  161.  
  162. #if defined(__MWERKS__)
  163. // hack for now to get things to compile... this forces us to use the new
  164. // fp.h instead of the old math.h
  165. #include <fp.h>        /* HUGE_VAL etc */
  166. #define __cmath__    /* pretend like we already included math.h */
  167. #else
  168. #include <math.h>        /* HUGE_VAL etc */
  169. #endif
  170.  
  171. #include <unix.h>        /* getcwd */
  172.  
  173. // ---------------------------------------------------------------
  174. // Debug with profiler
  175. // ---------------------------------------------------------------
  176. #if defined(NEEDS_PROF)
  177.     #if defined(__MWERKS__)
  178.     #include <profiler.h>
  179.     #elif defined(THINK_C)
  180.         #include <profile.h>
  181.     #elif defined(applec)
  182.       // um... MPW 3.3 needs...
  183.     #endif
  184. #endif
  185.  
  186.  
  187. // ---------------------------------------------------------------
  188. //    POV-Ray headers
  189. // ---------------------------------------------------------------
  190.  
  191. // Basic core POV headers
  192. #include "frame.h"        // this includes config.h
  193. #include "povproto.h"
  194. #include "POVRAY.H"
  195.  
  196. // Cannot have these in precompiled headers due to compile errors
  197. // #include "DEFLATE.H"
  198. // #include "ZLIB.H"
  199. // #include "PNG.H"
  200.  
  201. // Core POV headers
  202. #include "ATMOSPH.H"
  203. #include "BBOX.H"
  204. #include "BCYL.H"
  205. #include "BEZIER.H"
  206. #include "BLOB.H"
  207. #include "BOXES.H"
  208. #include "BSPHERE.H"
  209. #include "CAMERA.H"
  210. #include "CHI2.H"
  211. #include "COLOUR.H"
  212. #include "CONES.H"
  213. #include "CSG.H"
  214. #include "DISCS.H"
  215. #include "EXPRESS.H"
  216. #include "FRACTAL.H"
  217. #include "GIF.H"
  218. #include "GIFDECOD.H"
  219. #include "HALOS.H"
  220. #include "HCMPLX.H"
  221. #include "HFIELD.H"
  222. #include "IFF.H"
  223. #include "IMAGE.H"
  224. #include "LATHE.H"
  225. #include "LBUFFER.H"
  226. #include "LIGHTING.H"
  227. #include "MATRICES.H"
  228. #include "MEM.H"
  229. #include "MESH.H"
  230. #include "NORMAL.H"
  231. #include "OBJECTS.H"
  232. #include "OCTREE.H"
  233. #include "OPTIN.H"
  234. #include "OPTOUT.H"
  235. #include "PARSE.H"
  236. #include "PARSTXTR.H"
  237. #include "PATTERN.H"
  238. #include "PGM.H"
  239. #include "PIGMENT.H"
  240. #include "PLANES.H"
  241. #include "PNG_POV.H"
  242. #include "POINT.H"
  243. #include "POLY.H"
  244. #include "POLYGON.H"
  245. #include "POLYSOLV.H"
  246. #include "PPM.H"
  247. #include "PRISM.H"
  248. #include "QUADRICS.H"
  249. #include "QUATERN.H"
  250. #include "RADIOSIT.H"
  251. #include "RAY.H"
  252. #include "RENDER.H"
  253. #include "SOR.H"
  254. #include "SPHERES.H"
  255. #include "SUPER.H"
  256. #include "TARGA.H"
  257. #include "TEXTURE.H"
  258. #include "TOKENIZE.H"
  259. #include "TORUS.H"
  260. #include "TRIANGLE.H"
  261. #include "TRUETYPE.H"
  262. #include "TXTTEST.H"
  263. #include "USERIO.H"
  264. #include "VBUFFER.H"
  265. #include "VECTOR.H"
  266. #include "VLBUFFER.H"
  267. #include "WARPS.H"
  268.  
  269. // Basic Mac POV headers
  270. #include "AboutBox.h"
  271. #include "aeAppHdlr.h"
  272. #include "aeTok.h"
  273. #include "AEUtils.h"
  274. #include "Animate.h"
  275. #include "AppPrefs.h"
  276. #include "ArgvTrix.h"
  277. #include "CursorUtils.h"
  278. #include "DialogUtils.h"
  279. #include "FilePrefs.h"
  280. #include "FileQueue.h"
  281. #include "ImageWindow.h"
  282. #include "LnkLst.h"
  283. #include "MemAlloc.h"
  284. #include "PrePost.h"
  285. #include "PovMac.h"
  286. #include "PovMacProto.h"
  287. #include "Printf2Window.h"
  288. #include "ProgressDialog.h"
  289. #include "SaveCmpPict.h"
  290. #include "ScreenUtils.h"
  291. // #include "sysMacPict.h" // not used yet
  292. #include "SplashScreen.h"
  293. #include "stdfolder.h"
  294. #include "Stdio_p2w.h"
  295. #include "TemplateMenu.h"
  296. #include "TextEditor.h"
  297. #include "TE32K.h"
  298. #include "UndoRedoSystem.h"
  299. #include "VolsPaths.h"
  300.  
  301.  
  302. #if defined(THINK_C)
  303.     // ---------------------------------------------------------------
  304.     //    return to normalcy
  305.     // ---------------------------------------------------------------
  306.     #if !(powerc || __CFM68K__)
  307.      #pragma d0_pointers reset
  308.     #endif
  309. #endif
  310.  
  311. #endif // POVMACHEADERS_PCH
  312.